package com.example.springevent.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 事务性事件 - 演示事务绑定事件
 */
@Getter
public class TransactionalEvent extends ApplicationEvent {
    
    private final String operation;
    private final String entityId;
    
    public TransactionalEvent(Object source, String operation, String entityId) {
        super(source);
        this.operation = operation;
        this.entityId = entityId;
    }
}